﻿using System.Collections.Generic;
using good1.ApplicationServices.Dto;
using good1.Core;

namespace good1.ApplicationServices.Interface
{
    public interface IProjectService<T> where T : ProjectDto
    {
        T Get(int id);
        IList<Project> GetAllSorted();
        IList<Project> GetFeatured();
        IList<Project> Search(string query);
        void SaveOrUpdate(Project project);
        string Delete(int id);
        void RollbackTransaction();
        T GetCreationDto();
        Charity GetCharity(int id);
        Location GetLocation(int id);
    }
}
